<?php $this->fetch('public/head'); ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">管理员</li>
        <li class=""><a href="<?php echo url('hsadmin/add') ?>">添加管理员</a></li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <table class="layui-table">
                <thead>
                <tr>
                    <th style="width: 30px;">ID</th>
                    <th>用户名</th>
                    <th>姓名</th>
                    <th>组别</th>
                    <th>状态</th>
                    <th>创建时间</th>
                    <th>最后登录时间</th>
                    <th>最后登录IP</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($admin_user_list as $v): ?>
                <tr>
                    <td><?php echo $v['id'] ?></td>
                    <td><?php echo $v['username'] ?></td>
                    <td><?php echo $v['name'] ?></td>
                    <td><?php echo $group_info[$v['group_id']] ?></td>
                    <td><?php echo $v['status']==1?'启用':'禁用' ?></td>
                    <td><?php echo date('Y-m-d H:i:s',$v['create_time']) ?></td>
                    <td><?php echo $v['last_login_time'] ?></td>
                    <td><?php echo $v['last_login_ip'] ?></td>
                    <td>
                        <a href="<?php echo url('hsadmin/edit?id='.$v['id']) ?>" class="layui-btn layui-btn-normal layui-btn-xs">编辑</a>
                        <a href="<?php echo url('hsadmin/delete?id='.$v['id']) ?>" class="layui-btn layui-btn-danger layui-btn-xs ajax-delete">删除</a>
                    </td>
                </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $this->fetch('public/script'); ?>